{% extends base_template %}
{% load i18n %}
{% load qa_tags %}
{% load qatrack_tags %}
{% load attach_tags %}
{% load comments %}

{% block content %}

{% for site, rows in sites_data %}
  <h3>{% if site %}{{ site }}{% else %}{% trans "Other" %}{% endif %}</h3>
  <div class="row">
    <div class="col-xs-12">
      <table class="table table-bordered table-striped table-condensed" >
        <thead>
          <tr>
            <th>{% trans "Unit" %}<div></div></th>
            <th style="width: 20%">{% trans "Test List (Cycle)" %}</th>
            <th>{% trans "Frequency" %}</th>
            <th style="width: 8%">{% trans "Due Date" %}</th>
            <th style="">{% trans "Due Window" %}</th>
            <th style="">{% trans "Assigned To" %}</th>
          </tr>
        </thead>
        <tbody>
          {% for row in rows %}
            <tr>
              <td>{{ row.unit_name }}</td>
              <td><a href="{{ row.link }}">{{ row.name }}</a></td>
              <td>{{ row.frequency }}</td>
              <td>{{ row.utc | as_due_date }}</td>
              <td>{{ row.window }}</td>
              <td>{{ row.assigned_to }}</td>
            </tr>
          {% endfor %}
        </tbody>
      </table>
    </div>
  </div>

{% endfor %}
{% endblock %}
